#ifndef __UBITMAP_H__
#define __UBITMAP_H__
#include "VUIControl.h"

// Picture Control.
class UIAPI VUIPicture : public VUIControl
{
	UDEC_CLASS(VUIPicture);
public:
	VUIPicture(void);
	virtual ~VUIPicture(void);
	BOOL SetSprite(const char* SpriteName);
	BOOL SetSprite(VSprite* Sprite);
	BOOL SetTexture(const char* TextureName);
	BOOL SetTexture(VRTexture* Texture);
	inline VSprite* GetSprite() { return m_Sprite;}
protected:
	virtual void OnRender();
protected:
	VSprite* m_Sprite;
};

#endif 
